import { createWebHashHistory, createRouter } from "vue-router";
const routes = [
  {
    path: '/',
    name: 'main',
    component: () => import('@/views/Main.vue'),
    redirect:'/home',
    children: [
      {
        path: 'home',
        name: 'home',
        component:()=>import('@/views/Home.vue')
      }
    ]
  }
]
//设置路由模式
const router =createRouter ({
  history: createWebHashHistory(),
  routes
})
export default router;